package com.example.demo.order.domain.dto;

import com.example.demo.base.BaseReqDto;
import com.example.demo.consts.ValidateConst;
import com.example.demo.consts.enums.State;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Auther: miaoguoxin
 * @Date: 2020/3/18 21:06
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TestReqDto extends BaseReqDto {
    @NotBlank(message = "{request.user.username.not.blank}",groups = {ValidateConst.AddGroup.class})
    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    private State state;
}
